package com.jie.service.impl;

import com.jie.dao.Agency_relationDao;
import com.jie.dao.impl.Agency_relationDaoImpl;
import com.jie.entity.Agency_relation;
import com.jie.service.RelationService;

/**
 * Created by 12904 on 2018/8/14.
 */
public class RelationServiceImpl implements RelationService
{
    @Override
    public int find(int said)
    {
        Agency_relationDao dao = new Agency_relationDaoImpl();
        return dao.find(said);
    }

    @Override
    public Agency_relation findByAid(int aid,int said)
    {
        Agency_relationDao dao = new Agency_relationDaoImpl();
        return dao.findByAid(aid,said);
    }

    @Override
    public int del(int arid)
    {
        Agency_relationDao dao = new Agency_relationDaoImpl();
        return dao.del(arid);
    }
}
